package com.kaiwukj.android.ufamily.mvp.ui.page.service.gm.playback;

import com.blankj.utilcode.util.TimeUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.kaiwukj.android.ufamily.R;
import com.videogo.openapi.bean.EZDeviceRecordFile;

import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;

public class PlaybackListChildAdapter extends BaseQuickAdapter<EZDeviceRecordFile, BaseViewHolder> {
    public PlaybackListChildAdapter() {
        super(R.layout.item_gm_playback_child, new ArrayList<>());
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, EZDeviceRecordFile item) {
        holder.setText(R.id.tv_name, TimeUtils.millis2String(item.getStartTime().getTimeInMillis(), "yyyy-MM-dd HH:mm"));

    }
}
